// 所有接口的服务层

import {axios,get,post} from "@/utils/axios"

/*
获取验证码
*/ 
export const getcsrftoken = params => get("/vue/gettoken",params);

/*
登录
*/
export const login = params => post("/vue/logined",params);

/*
注册
*/
export const zhuce = params => post("/vue/zhuce",params);


/*
用户查询
*/
export const getuser = params => post("/vue/getuser",params);


/*
轮播图
*/
export const getlunbo = params => post("/vue/getlunbo",params);


/*
获取用户列表
*/
export const getuserlist = params => post("/vue/getuserlist",params);

/*
删除用户
*/
export const deleteuser = params => post("/vue/deleteuser",params);


/*
获取卖座网电影列表
*/
export const getfilmlist = params => get("/vue/filmlist",params);

/*
获取卖座网电影列表
*/
export const detaillist = params => get("/vue/detaillist",params);
/*
获取本地数据库电影列表
*/
export const getmovielist = params => post("/vue/getmovielist",params);

/*
获取本地数据库单个电影
*/
export const getmovieone = params => post("/vue/getmovieone",params);

/*
添加电影票
*/
export const addtocar = params => post("/vue/addtocar",params);

/*
获取个人购物车
*/
export const getmycar = params => post("/vue/getmycar",params);

/*
单删个人购物车中的电影票
*/
export const delcarone = params => post("/vue/delcarone",params);

/*
单选修改选中状态
*/
export const changecarcheck = params => post("/vue/changecarcheck",params);

/*
批量删除选中
*/
export const delcarcheck = params => post("/vue/delcarcheck",params);

/*
修改票数
*/
export const changecarcount = params => post("/vue/changecarcount",params);
/*
获取评论列表
*/
export const getplist = params => post("/vue/getplist",params);

/*
删除评论
*/
export const deleteone = params => post("/vue/deleteone",params);

/*
添加评论
*/
export const addpinglun = params => post("/vue/addpinglun",params);

/*
添加评论回复
*/
export const addhf = params => post("/vue/addhf",params);

/*
获取我的评论
*/
export const getmyping = params => post("/vue/getmyping",params);

/*
上传头像
*/
export const uploadpic = params => post("/vue/uploadpic",params);